package com.java.excend.test_3;

/**
 * @author luzhikun
 * @date 2020/12/5- 21:21
 */
public class Cylinder_1 extends Circle_1 {
    private double length;

    public Cylinder_1() {
        this.length = 1;
    }

    public Cylinder_1(double length) {
        this.length = length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getLength() {
        return length;
    }

    public double findVulum() {
        return super.findArea() * length;
    }

    public double findArea() {
        double a = 2 * Math.PI * getRadius();
        return a;
    }

}
